<p style="margin: 5px 0pt;"><%=link_to  '测试管理' , :action=>"index"%>>>
<%=link_to  '创建复杂倾向测试' , :action=>"new"%> >> </p>
<div id="m">
 <div id="info">
<font color="blue"> 创建步骤：创建测试 >> <font color="red">添加倾向</font> >> 添加章节 >> 添加章节对应倾向结果 >> 添加问题 >> 完成 </font>
 </div>
<form id="form1" name="form1" action="/surveys/surveys/new_trend" method="post" onsubmit="" class="required-validate">
    <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, 
                 :value => form_authenticity_token) %> 
       <% i=1%>
      <input type="hidden" name="t_id" value="<%=@trend_scales[0].survey_id%>"/>
    <% for t in @trend_scales%>
     第&nbsp;&nbsp;<%=i%>&nbsp;&nbsp;种倾向 <br/>
     倾向名称&nbsp;&nbsp;&nbsp;：
        <input name="trend<%=i.to_s%>[name]" id="name<%=i.to_s%>" type="text" class="required min-length-1"/>
        <%=error_message_on :trend_scale , :name%><br/>
        <input type="hidden"  name="trend<%=i.to_s%>[survey_id]" value=<%=@trend_scales[0].survey_id%>></input>
         &nbsp;&nbsp;explanation:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         <textarea cols="50" rows="5" name="trend<%=i.to_s%>[explanation]" id="explanation<%=i.to_s%>"
              class="required" style="width:60;height:20;border: 1px solid"/></textarea><br/>
         solution:<br />&nbsp;&nbsp;&nbsp;&nbsp;
         <textarea cols="50" rows="5" name="trend<%=i.to_s%>[solution]" id="solution<%=i.to_s%>"
         class="required" style="width:100;border: 1px solid"/></textarea><br/>
   <% i=i+1 %>
  <% end %>
   <input type="hidden" name="num" value=<%=i-1%>>
      <input type="submit" value="下一步>>"   style="margin-left: 150px"/><br />
</form>
<div>
